﻿using System;
using System.Text;
using System.Windows;
using System.Windows.Controls;

using P2.Cuberry.Framework.Helper;


namespace P2.Cuberry.Modules.Framework.LocalCuberryReport.Controls
{
    class CuberryReportLabel : System.Windows.Controls.Label
    {        

        public CuberryReportLabel(string labelName, Thickness labelMargins, int labelWidth, int labelHight)
        {
            this.Name = labelName;
            this.Width = labelWidth;
            this.Height = labelHight;
            this.Margin = labelMargins;
            this.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
            this.VerticalAlignment = System.Windows.VerticalAlignment.Top;
            this.Content = P2Translator.GetResource(labelName);            
        }
    }
}
